package com.org.web.api.unishop;

import com.org.platform.model.ResultModel;
import com.org.web.api.unishop.model.Merchandise;
import com.org.web.api.unishop.service.CartService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author duheng
 * @Date 2021/11/11 16:29
 */
@RestController
public class MobileShopCartController {

	@Autowired
	private CartService cartService;

	@RequestMapping(value = {"/mobile/unishop/getCartList"})
	public ResultModel getCartList() {
		List<Merchandise> result = cartService.getCartList();
		return ResultModel.newSuccess(result);
	}

}
